package com.huitong.common.dubbo.properties;

import com.huitong.common.dubbo.enums.LogLevel;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * Dubbo自定义配置
 *
 * @author fromdrowning
 * @date 2024/3/21 22:46
 */
@Data
@RefreshScope
@ConfigurationProperties(prefix = "dubbo.log")
public class DubboCustomProperties {

    /**
     * 是否开启请求日志 默认{@code false}
     */
    private boolean requestLog = false;

    /**
     * 日志级别
     */
    private LogLevel logLevel;

}
